package com.v1.admin.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.v1.util.Toolkit;

public class RefreshAction extends AdminAction {

	public ActionForward unspecified(ActionMapping mapping, ActionForm form, HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		Toolkit toolkit = Toolkit.getInstance();
		toolkit.refresh();
		setAttribute(request, "message", "ok, refreshed.");
		return mapping.findForward("refresh");
	}
}
